#ifndef LOCATION_H_
#define LOCATION_H_

#include <string>
#include "MapTiles.h"

namespace opennav {

struct LocationHeader {
	int32_t country_table_offset;
	uint8_t country_table_size;
	int32_t region_table_offset;
	int16_t region_table_size;
	int32_t city_table_offset;
	int32_t city_table_size;
};

struct Country {
	uint8_t country_id;
	std::string name;
};

struct Region {
	int16_t region_id;
	std::string name;
	int16_t parent_region_id;
	uint8_t country_id;
};

struct City {
	int32_t city_id;
	std::string name;
	int32_t parent_city_id;
	int16_t region_id;
	MapObjectReference map_object_ref;
};

}

#endif /* LOCATION_H_ */
